import request from '@/common/request.js'	

/**
 * 文章列表
 */
export function articleList(data){
	return new Promise(function(resolve, reject) {
		request({
			url: "api/article",
			method: "get",
			data
		}).then(res => {
			return resolve(res)
		})
	})		
}

/**
 * 文章详情
 */
export function articleDetail(data){
	return new Promise(function(resolve, reject) {
		request({
			url: "api/articleDetail",
			method: "get",
			data
		}).then(res => {
			return resolve(res)
		})
	})		
}

